package com.xac.common.data.regex;


/**
 * @author frank
 *
 */
public class DateRegex {

	/**
	 * Date Format: "yyyy-MM-dd HH:mm:ss.S"
	 */
	public static final String FULL_TYPE = "^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])" + "[ ]" + "([01]\\d|2[0-3]:[0-5]\\d:[0-5]\\d.\\d{3})$";
	
	/**
	 * Date Format: "yyyy-MM-dd HH:mm:ss"
	 */
	public static final String NORMAL_TYPE = "^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])" + "[ ]" + "([01]\\d|2[0-3]:[0-5]\\d:[0-5]\\d)$";
	
	/**
	 * Date Format: "MM-dd HH:mm"
	 */
	public static final String SHORT_TYPE = "^(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])" + "[ ]" + "([01]\\d|2[0-3]:[0-5]\\d)$";
	
	/**
	 * Date Format: "yyyy-MM-dd"
	 */
	public static final String DATE_TYPE = "^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])";
	
	/**
	 * Date Format: "HH:mm:ss"
	 */
	public static final String TIME_TYPE = "^[01]\\d|2[0-3]:[0-5]\\d:[0-5]\\d$";
	
}
